package day0521;

import java.util.Arrays;

public class Test6 {
    public static boolean equals(int[] a, int[] b) {
        boolean rs=true;
        if(a.length != b.length){
            rs=false;
            return rs;
        }
        for (int i = 0; i < a.length; i++) {
            if(a[i] !=  b[i]){
                rs=false;
            }
        }
        return rs;
    }

    public static void main(String[] args) {
        int[] a={1,  4, 7};
        int[] b={1,  4, 7};
        boolean n=equals(a,b);
        System.out.println(n);
    }





}
